# Before

#bootinfo -b
#[hdisk]
## bosboot -ad /dev/[hdisk]
#bosboot: Boot image is 25266 512 byte blocks.
## bosboot -ad /dev/ipldevice
#bosboot: Boot image is 25266 512 byte blocks.

df -g	> /tmp/df.m
lsvg	> /tmp/lsvg.m
ifconfig -a	> /tmp/ifconfig.m

bootlist -om normal | tee /tmp/bootinfo
bosboot -ad /dev/`bootinfo -b` | tee /tmp/bosboot
bosboot -ad /dev/ipldevice | tee /tmp/bosboot_ipldevice

stopsap

# After

df -g	> /tmp/df.NEW
lsvg	> /tmp/lsvg.NEW
ifconfig -a	> /tmp/ifconfig.NEW

diff /tmp/df.NEW /tmp/df.m
diff /tmp/lsvg.NEW /tmp/lsvg.m
diff /tmp/ifconfig.NEW /tmp/ifconfig.m

lsdev| grep hdisk| awk '{print $1}'| xargs -I {} lsattr -El   {} -a queue_depth
lsdev| grep hdisk| awk '{print $1}'| xargs -I {} chdev -l  {} -a queue_depth=20 -P
lsdev| grep hdisk| awk '{print $1}'| xargs -I {} lsattr -El   {} -a queue_depth

# Fix the path issue
...rmdev -Rdl ... cfgmgr
or
...rmpath -dl hdisk.. -p vscsi..

bootlist -om normal | tee /tmp/bootinfo.NEW
bosboot -ad /dev/`bootinfo -b` | tee /tmp/bosboot.NEW
bosboot -ad /dev/ipldevice | tee /tmp/bosboot_ipldevice.NEW

lsvg -p rootvg

diff /tmp/bootinfo /tmp/bootinfo.NEW
diff /tmp/bosboot /tmp/bosboot.NEW
diff /tmp/bosboot_ipldevice /tmp/bosboot_ipldevice.NEW


# On saprmt01...
sudo /usr/local/bin/mon_MPIO_parms_remote.sh $REMOTE
